package com.ruoyi.common.constant;

/**
 * @author lw
 */
public class RedisKey {

    // sms_code:smart_code:<场景>:<手机号>
    public static final String SMS_CODE = "sms_code:smart_code:%s:%s";

    // sms_code_times:smart_code:<场景>:<手机号>
    public static final String SMS_CODE_TIMES = "sms_code_times:smart_code:%s:%s";

    // 资产分类编号序列锁
    public static final String USER_NUMBER_SEQUENCE_LOCK = "user_number_sequence_lock:%d";

    // 用户编号序列
    public static final String USER_NUMBER_SEQUENCE = "user_number_sequence";

    // AccessToken缓存key.  access_token_lock:<appid>
    public static final String ACCESS_TOKEN_LOCK = "access_token_lock:%s";

    // AccessToken缓存key.  access_token:<appid>
    public static final String ACCESS_TOKEN = "access_token:%s";


    /**
     * 用户领取停车券锁
     */
    public static final String USER_RECEIVE_VOUCHER_LOCK = "user_receive_voucher_lock:%d";

}
